package com.ws.test;

/**
 * @author 王硕
 * @version jdk21
 * @className SharedBikeMgr
 * @description
 * @date 2024/11/13 16:34
 */
public class SharedBikeMgr {
    public static void initial() {
        SharedBikeCompany[] bikeCompanies = new SharedBikeCompany[3];
        bikeCompanies[0] = new SharedBikeCompany("ofo", 10);
        bikeCompanies[1] = new SharedBikeCompany("halo", 10);
        bikeCompanies[2] = new SharedBikeCompany("mobai", 10);

        bikeCompanies[0].addBike(new SharedBike(1, "ofo单车1"));
        bikeCompanies[0].addBike(new SharedBike(2, "ofo单车2"));
        bikeCompanies[1].addBike(new SharedBike(3, "halo单车1"));
        bikeCompanies[2].addBike(new SharedBike(4, "mobai单车1"));
        // 初始借出状态
        bikeCompanies[0].borrowBike(0, "2019-8-12 12:00:00");
        bikeCompanies[1].borrowBike(1, "2019-8-12 12:00:00");
    }
}
